
SOURCES_Cpp = $(wildcard *.cpp)
HEADERS     = $(wildcard *.h)

OBJS = $(patsubst %.cpp, %.o, $(SOURCES_Cpp))

TARGET = engine

CC := g++

CFLAGS += -g -O2 -Wall -fPIC -lpthread -levent

all:$(TARGET)
	$(CC) $(OBJS) -o $^ $(CFLAGS)

$(TARGET):$(OBJS)

%.o:%.cpp
	$(CC) -c $< -o $@ 

clean:
	rm -rf *.i *.o engine
